  <!DOCTYPE html>
  <html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="../../assets/css/style.css">
    <script src="../../scripts/jquery-1.11.3.min.js"></script>
    <script src="../../scripts/lib/echarts-3.3.1/echarts.min.js"></script>
    <style>
      html,body,.chart{height:100%;padding:0;margin:0;}
    </style>
  </head>
  <body>
    <!-- 为ECharts准备一个具备大小（宽高）的Dom -->
    <div id="chart1" style="height:100%;width:100%;"></div>
    <!-- ECharts单文件引入 -->

    <script type="text/javascript">
      var option = {
        title: {
            //text: 'ECharts 入门示例'
          },
          tooltip: {},
          legend: {
            data:['销量']
          },
          xAxis: {
            data: ["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"]
          },
          yAxis: {},
          series: [{
            name: '销量',
            type: 'bar',
            data: [5, 20, 36, 10, 10, 20]
          }]
        };
        var myChart = echarts.init(document.getElementById('chart1'));
        myChart.setOption(option);
      </script>
    </body>
    </html>